package com.zmn.brs.starter.support.aop;

import org.springframework.aop.ClassFilter;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;

/**
 * 类描述：Advisor
 *
 * @author xujie
 * @since 2021/03/12 14:24
 */
public class BeanFactoryStaffOperateRecordAdvisor extends AbstractBeanFactoryPointcutAdvisor {

    private final StaffOperateRecordPointcut pointcut = new StaffOperateRecordPointcut();

    private StaffOperateRecordOperationSource staffOperateRecordOperationSource;

    public void setClassFilter(ClassFilter classFilter) {
        this.pointcut.setClassFilter(classFilter);
    }

    @Override
    public Pointcut getPointcut() {
        return pointcut;
    }

    public void setStaffOperateRecordOperationSource(StaffOperateRecordOperationSource operationSource) {

        pointcut.setStaffOperateRecordOperationSource(operationSource);
    }
}
